export default {
  data() {
    return {
      msg: '我爱你',
      money: 300
    }
  },
  mounted() {
    console.log('mixin组件内的钩子');
},
  methods: {
    giveMoney(num) {
        this.money -=num
        this.$parent.money +=num
    }
},
  

}